package com.niit.repository;

import com.niit.entity.Region;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface RegionRepository extends JpaRepository<Region, Long> {
	List<Region> findAllByLevel(Byte level);
	List<Region> findAllByParentCode(Long parentCode);
}
